﻿using JetBrains.Annotations;
using PHMEE.Constants;
using PHMEE.ToolKits;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE.DTOS.StatusMonitor
{
    public class VesselGpsModel
    {
        /// <summary>
        /// 经度时间戳
        /// </summary>
        public DateTime? LongitudeTs { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public string Longitude => LongitudeOrg.HasValue ? LongitudeOrg.Value.LongitudeToDMS() : string.Empty;

        /// <summary>
        /// 经度原始Td值
        /// </summary>
        public float? LongitudeOrg { get; set; }

        /// <summary>
        /// 维度时间戳
        /// </summary>
        public DateTime? LatitudeTs { get; set; }

        /// <summary>
        /// 维度
        /// </summary>
        public string Latitude => LatitudeOrg.HasValue ? LatitudeOrg.Value.LatitudeToDMS() : string.Empty;

        /// <summary>
        /// 维度原始Td值
        /// </summary>
        public float? LatitudeOrg { get; set; }

        /// <summary>
        /// 对地航速时间戳
        /// </summary>
        public DateTime? SpeedOverGroundTs { get; set; }

        /// <summary>
        /// 对地航速
        /// </summary>
        public string SpeedOverGround => SpeedOverGroundOrg?.ToString();

        /// <summary>
        /// 对地航速原始Td值
        /// </summary>
        public float? SpeedOverGroundOrg { get; set; }



    }
}
